package com.example.netty.pojo;

import com.example.netty.common.Exclude;
import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.Instant;

@ApiModel("Offside对象")
@Data
@Measurement(
    name = "Offside"
)
public class Offside implements Serializable {
  @Exclude
  private static final long serialVersionUID = 1L;

  @Column
  private String pid;

  @ApiModelProperty("表名")
  @Column
  private String tablename;

  @ApiModelProperty("警告值")
  @Column
  private String columnname;

  @Column(tag = true)
  private String keyid;

  @Column
  private String keyname;

  @ApiModelProperty("当前值")
  @Column
  private String keyvalue;

  @Column
  private String warnvalue;

  @Exclude
  @ApiModelProperty("创建时间")
  @Column(
      name = "_time",
      timestamp = true
  )
  private Instant createTime;
}
